import rest from '@/api/request'


export function getRoleList() {
    return rest.get('/sys/permission')
}
//新增权限点
export function addRole(data: any) {
    return rest.post('/sys/permission', data)
}

export function deleteRole(id: number) {
    return rest.delete(`/sys/permission/${id}`)
}

export function updateRole(id: string, raw: any) {
    return rest.put(`/sys/permission/${id}`, raw)
}